package com.cyf.db.mapper;

import com.cyf.db.bean.Adminpara;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 基础配置
 * Created by hfy on 2017/5/22.
 */
public interface AdminparaMapper {

    @Select("select * from adminpara where paraKey = #{paraKey}")
    Adminpara getByParaKey(@Param("paraKey") String paraKey);

    @Select(" SELECT * FROM local_adminpara WHERE parkingId = #{parkingId} AND paraKey = #{paraKey}")
    Adminpara getParaValueByParkingId(@Param("parkingId") Integer parkingId,@Param("paraKey") String paraKey);
}
